home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
PBLIB1
/
PROGS
/
READSECT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-05-03
|
893b
|
40 lines
Program READSECT;
{$M 15000,0,655000}
uses DOS, PbCRT, PbMISC, PbHELP;
{
Description: READSECT - Simple Program to View text files
Author : Howard Richoux
Date : 1/9/91
Last revised: 2/21/94 minor fixes
Application : IBM PC and compatibles, done in Turbo Pascal 7.0
Status : Placed in the Public Domain by HNR Software 1/29/94
Published in: none
}
var fname : string[60]; { complete file name }
secttag : string[20]; { how the file is divided "?SECTION" ... }
cmd : string[40]; { exit command }
Procedure READSECTInit;
var i : integer;
s : string;
begin
fname := 'test.txt';
secttag := '{section ';
if paramcount > 0 then fname := paramstr(1);
end;
begin {initialization}
SetColorScheme(0);
READSECTInit;
DoHelpFileView(fname,secttag,cmd);
end.